﻿//using MyTcpIp.enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MyTcpIp.packetType;


namespace MyTcpIp.netPacket
{
    public class NetPacketHead
    {
        public const int HEAD_SIZE= 12;
        public NetPacketHead()
        {           
            Version = 1;
            PacketType = PacketType.STRING;
            BodyLen = 0;
        }
        public const Int32 HeadSize = 4 * 3;
        //版本号
        public Int32 Version { get; set; }
        //包体类型
        public PacketType PacketType { get; set; }
        //包体长度
        public Int32 BodyLen { get; set; }
         
    }
}
